package com.zhengxing.jienci.stream.controller;

import com.zhengxing.jienci.stream.service.IMessageProviderImpl;
import com.zhengxing.jienci.stream.service.IMessageProviderImpl2;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author 浪遏飞舟
 * @create 2020-09-23 10:37
 */
@RestController
public class SendMessageController {

    @Resource
    private IMessageProviderImpl IMessageProviderImpl;

    @Resource
    private IMessageProviderImpl2 iMessageProvider2;

    @RequestMapping("/send0")
    public String send(){
        return IMessageProviderImpl.send();
    }

    @RequestMapping("/send1")
    public String send2(){
        return iMessageProvider2.send();
    }

}
